package com.qianzhou.eduUserBoot.service;


import com.qianzhou.eduCommon.dto.UserDTO;
import com.qianzhou.eduCommon.dto.UserRoleDTO;
import com.qianzhou.eduCommon.po.User;
import com.qianzhou.eduCommon.vo.PageInfoVO;
import com.qianzhou.eduCommon.vo.ResponseResultVO;
import com.qianzhou.eduCommon.vo.RoleVO;
import com.qianzhou.eduCommon.vo.UserVO;

import java.util.List;
import java.util.Map;

/**
 * @Author: qian.zhou
 * @Description:
 * @Date Created in 2021-08-31-21:23
 * @Modified By:
 */
public interface UserService {
    User getOne(Integer id);

    PageInfoVO<User> findAllUserByPage(UserDTO dto);

    Integer updateUserStatus(Integer id, String status);

    UserVO login(UserDTO dto);

    List<RoleVO> findUserRoleById(Integer id);

    Integer userContextRole(UserRoleDTO dto);

    Map<Object,Object> getUserPermissions(Integer user_id);
}
